package com.ruoyi.api.abuwx.service.impl;

import com.ruoyi.abuwx.domain.AbuwxQuestionCategory;
import com.ruoyi.abuwx.service.IAbuwxQuestionCategoryService;
import com.ruoyi.api.abuwx.service.ICCategoryService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zouhuu
 * @description 客户端 题库模块 服务层
 * @date 2022/07/05 09:05:55
 */
@Service
public class CategoryServiceImpl implements ICCategoryService {


    @Autowired
    private IAbuwxQuestionCategoryService iAbuwxQuestionCategoryService;




    /**
     * 题库列表
     * @return
     */
    @Override
    public AjaxResult selectSiteCategory () {
        List<AbuwxQuestionCategory> abuwxQuestionCategories = iAbuwxQuestionCategoryService.selectAbuwxQuestionCategoryList(new AbuwxQuestionCategory());
        return AjaxResult.success(abuwxQuestionCategories);
    }


}
